package com.yiwei.jmx.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.yiwei.jmx.R;

import butterknife.BindView;
import butterknife.ButterKnife;


/**
 * Created by xsooy-pc on 2017/10/23.
 */

public class BuyReportAdapter extends ItemAdapter<String, BuyReportAdapter.DefaultHolder> {



    public BuyReportAdapter(Context context) {
        super(context);
    }

    @Override
    public DefaultHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new DefaultHolder(inflate(R.layout.item_buy_report, parent));
    }

    @Override
    public void onBindViewHolder(DefaultHolder holder, int position) {

    }

    class DefaultHolder extends RecyclerView.ViewHolder {
        @BindView(R.id.txt_type)
        TextView txtType;
        @BindView(R.id.img_recommend)
        ImageView imgRecommend;
        @BindView(R.id.txt_desc)
        TextView txtDesc;
        @BindView(R.id.txt_money)
        TextView txtMoney;
        @BindView(R.id.img_check)
        ImageView imgCheck;
        public DefaultHolder(View itemView) {
            super(itemView);
            ButterKnife.bind(this, itemView);
        }
    }

    private OnChooseListener onChooseListener;

    public void setOnChooseListener(OnChooseListener onChooseListener) {
        this.onChooseListener = onChooseListener;
    }

    public interface OnChooseListener {
        void onSuccess();
    }
}
